import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/api/v1/sale/findSmsHomeRecommendProduct',
    method:'post',
    params:params
  })
}

export function updateRecommendStatus(data) {
  return request({
    url:'/api/v1/sale/updateSmsHomeRecommendProduct',
    method:'post',
    data:data
  })
}

export function deleteHotProduct(data) {
  return request({
    url:'/api/v1/sale/delSmsHomeRecommendProduct',
    method:'post',
    data:data
  })
}

export function createHotProduct(data) {
  return request({
    url:'/api/v1/sale/addSmsHomeRecommendProduct',
    method:'post',
    data:data
  })
}

export function updateHotProductSort(params) {
  return request({
    url:'/api/v1/sale/updateSmsHomeRecommendProduct',
    method:'post',
    params:params
  })
}
